<template>
<div class="header">
	<div class="header-left"><div class="iconfont back-icon">&#xe64e;</div></div>
	<div class="header-input"><span class="iconfont search-icon">&#xe963;</span>输入城市/景点/游玩主题</div>
	<router-link to="/city" class="city-color">
		<div class="header-right">
			{{this.city}}
			<span class="iconfont arrow-icon">&#xe671;</span>
		</div>
	</router-link>
</div>
</template>

<script>
export default{
  name: 'HomeHeader',
  props: {
    city: String
  }
}
</script>

<style lang="stylus" scoped>
@import '~styles/variables.styl'
.header
  height 2rem
  display flex
  background #00bcd4
  color #fff
  font-size .57rem
  .city-color
  	color #fff
  .header-left
    float left
    width 1.38rem
    height 100%
    line-height 2rem
    .back-icon
      font-size .48rem
      text-align center
  .header-input
    float left
    flex 1
    background #fff
    border-radius .1rem
    margin-left .45rem
    margin-top .33rem
    height 1.37rem
    line-height 1.37rem
    color #eee
    .search-icon
      float left
      margin-right .23rem
  .header-right
    float left
    width 3rem
    text-align center
    line-height 2rem
    .arrow-icon
      font-size .57rem
      margin-left .051rem
</style>
